package com.aqgj.util;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Jetvae on 2017/6/22.
 */
public interface IBaseDao<T extends BaseEntity> {
    T get(Serializable paramSerializable);

    Object get(Class paramClass, Serializable paramSerializable);

    List<T> getAll();

    List<T> getAll(String paramString, boolean paramBoolean);

    List<T> findBy(String paramString, Object paramObject);

    T findUniqueBy(String paramString, Object paramObject);

    void save(BaseEntity paramBaseEntity);

    void remove(BaseEntity paramBaseEntity);

    void removeById(Serializable paramSerializable);

    void removeById(Class paramClass, Serializable paramSerializable);

    List<T> listQuery(String paramString, Object... paramVarArgs);

}
